import request from '@/utils/request'

// 查询通用机场基本信息列表
export function listGenairport(query) {
  return request({
    url: '/baseinfo/genairport/list',
    method: 'get',
    params: query
  })
}

// 查询通用机场基本信息详细
export function getGenairport(genairportid) {
  return request({
    url: '/baseinfo/genairport/' + genairportid,
    method: 'get'
  })
}

// 新增通用机场基本信息
export function addGenairport(data) {
  return request({
    url: '/baseinfo/genairport',
    method: 'post',
    data: data
  })
}

// 修改通用机场基本信息
export function updateGenairport(data) {
  return request({
    url: '/baseinfo/genairport',
    method: 'put',
    data: data
  })
}

// 删除通用机场基本信息
export function delGenairport(genairportid) {
  return request({
    url: '/baseinfo/genairport/' + genairportid,
    method: 'delete'
  })
}
